$OpenBSD: patch-src_lib_server_ClientProxy1_4_cpp,v 1.2 2015/01/03 04:59:27 bcallah Exp $
--- src/lib/server/ClientProxy1_4.cpp.orig	Mon Dec 22 16:18:26 2014
+++ src/lib/server/ClientProxy1_4.cpp	Mon Dec 22 16:19:16 2014
@@ -83,7 +83,11 @@ ClientProxy1_4::cryptoIv()
 	String data(reinterpret_cast<const char*>(iv), CRYPTO_IV_SIZE);
 
 	LOG((CLOG_DEBUG2 "send crypto iv change to \"%s\"", getName().c_str()));
+#if defined(__mips64__) || defined(__sparc64__) || defined(__hppa__)
+	ProtocolUtil::writef(static_cast<void*>(getStream()), static_cast<const char*>(kMsgDCryptoIv), &data);
+#else
 	ProtocolUtil::writef(getStream(), kMsgDCryptoIv, &data);
+#endif
 	
 	// change IV only after we've sent the current IV, otherwise
 	// the client won't be able to decrypt the new IV.
